<template>
  <div>
    <div class="_font-title">在线成员列表</div>
    <div class="_font" v-for="(item, _index) in onlineInfos" :key="_index">
      {{ item.name }}({{ item.ip }})
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      onlineInfos: [],
    };
  },
  mounted() {
    this.$comApi.online().then((res) => {
      this.onlineInfos = res;
    });
  },
};
</script>

<style></style>
